package com.lc.luzhengtang.conn;

import com.google.gson.Gson;
import com.lc.luzhengtang.bean.CommenBean;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2017/6/9.
 */

@HttpInlet(Conn.DEFAULT_ADDRESS)
public class DefaultAddressManagement extends BaseAsyPost<CommenBean> {

    String member_id,  id;

int status;
    public DefaultAddressManagement(String member_id, int status, String id, AsyCallBack asyCallBack) {
        super(asyCallBack);
        this.member_id = member_id;
        this.status = status;
        this.id = id;
    }


    @Override
    protected CommenBean parser(JSONObject object) throws Exception {
        CommenBean commenBean = new CommenBean();

        Gson gson = new Gson();

        commenBean = gson.fromJson(object.toString(), CommenBean.class);


        return commenBean;


    }
}
